package cn.com.nes.site.entity.bo.callcenter;

import cn.com.nes.mybatis.callcenter.entity.HouseMaster;
import lombok.Data;

/**
 * 房屋户主关系保存模型
 */
@Data
public class HouseMasterSaveBo {

    private Long id;

    /**
     * 房屋id
     */
    private Long houseId;

    /**
     * 户主id
     */
    private Long masterId;

    /**
     * 创建时间
     */
    private Long gmtCreate;

    /**
     * 修改时间
     */
    private Long gmtModified;

    /**
     * 来源 判断是否由小程序添加
     */
    private String source;

    /**
     * 转换为房屋户主关系信息
     * @return
     */
    public HouseMaster toHouseMaster() {
        HouseMaster houseMaster = new HouseMaster();
        houseMaster.setId(this.getId());
        houseMaster.setHouseId(this.getHouseId());
        houseMaster.setMasterId(this.getMasterId());
        houseMaster.setGmtCreate(this.getGmtCreate());
        houseMaster.setGmtModified(this.getGmtModified());
        houseMaster.setSource(this.getSource());
        return houseMaster;
    }

}
